package com.simtop.service.impl;


import com.simtop.mapper.SqyxLabelMapper;
import com.simtop.pojo.CheadVo;
import com.simtop.pojo.SqyxLabel;
import com.simtop.service.SqyxLabelServer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class SqyxLabelServerImpl implements SqyxLabelServer {

    @Autowired
    private SqyxLabelMapper sqyxLabelMapper;


    @Override
    public boolean insertLabel(SqyxLabel sqyxLabel) {
        return sqyxLabelMapper.insertLabel(sqyxLabel);
    }

    @Override
    public List<SqyxLabel> girFirstLabel() {
        return sqyxLabelMapper.girFirstLabel();
    }

    @Override
    public List<CheadVo> gitCheadVo(int parentid,int userid) {
        return sqyxLabelMapper.gitCheadVo(parentid,userid);
    }

    @Override
    public int findparentid(String labname) {
        return sqyxLabelMapper.findparentid(labname);
    }

    @Override
    public List<SqyxLabel> findcheadList(int findparentid) {
        return sqyxLabelMapper.findcheadList(findparentid);
    }

    @Override
    public int fincount(String labelname) {
        return sqyxLabelMapper.fincount(labelname);
    }

    @Override
    public SqyxLabel findAllByname(String labelname) {
        return sqyxLabelMapper.findAllByname(labelname);
    }

    @Override
    public List<SqyxLabel> finmyself(int userid,String labnames) {
        return sqyxLabelMapper.finmyself(userid,labnames);
    }

    @Override
    public void deleteLabName(String labname) {
        sqyxLabelMapper.deleteLabName(labname);
    }
}
